package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋 对象 zy_building
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class Building extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼栋id */
    @Excel(name = "楼栋id")
    private Long buildingId;

    /** 楼栋名称 */
    @Excel(name = "楼栋名称")
    private String buildingName;

    /** 楼栋编码 */
    @Excel(name = "楼栋编码")
    private String buildingCode;

    /** 楼栋面积 */
    @Excel(name = "楼栋面积")
    private BigDecimal buildingAcreage;

    /** 小区id */
    @Excel(name = "小区id")
    private Long communityId;

    @Excel(name = "小区表")
    private Community community;

    public Community getCommunity() {
        return community;
    }

    @Excel(name = "小区名称")
    private String communityname;

    public String getCommunityname() {
        return communityname;
    }

    public void setCommunityname(String communityname) {
        this.communityname = communityname;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public void setBuildingId(Long buildingId)
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setBuildingName(String buildingName) 
    {
        this.buildingName = buildingName;
    }

    public String getBuildingName() 
    {
        return buildingName;
    }
    public void setBuildingCode(String buildingCode) 
    {
        this.buildingCode = buildingCode;
    }

    public String getBuildingCode() 
    {
        return buildingCode;
    }
    public void setBuildingAcreage(BigDecimal buildingAcreage) 
    {
        this.buildingAcreage = buildingAcreage;
    }

    public BigDecimal getBuildingAcreage() 
    {
        return buildingAcreage;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("buildingId", getBuildingId())
            .append("buildingName", getBuildingName())
            .append("buildingCode", getBuildingCode())
            .append("buildingAcreage", getBuildingAcreage())
            .append("communityId", getCommunityId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
